package cn.stylefeng.guns.modular.system.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 港中旅加价规则设置
 * </p>
 *
 * @author pengjx
 * @since 2019-01-07
 */
@TableName("price_raise_rule")
public class PriceRaiseRule extends Model<PriceRaiseRule> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 机票类型1国内2国际
     */
    @TableField("ticket_type")
    private Integer ticketType;
    /**
     * 票价始
     */
    @TableField("price_start")
    private BigDecimal priceStart;
    /**
     * 票价止（含）
     */
    @TableField("price_end")
    private BigDecimal priceEnd;
    /**
     * 加价方式：1固定金额；2百分比
     */
    private Integer mode;
    /**
     * 加价金额(当加价方式为1固定金额时该值不为空)
     */
    @TableField("raise_money")
    private BigDecimal raiseMoney;
    /**
     * 加价百分比（当加价方式为2百分比时该值不为空）
     */
    @TableField("raise_percent")
    private Integer raisePercent;
    /**
     * 加价后票价始
     */
    @TableField("price_start_afterraise")
    private BigDecimal priceStartAfterraise;
    /**
     * 加价后票价止（含）
     */
    @TableField("price_end_afterraise")
    private BigDecimal priceEndAfterraise;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTicketType() {
        return ticketType;
    }

    public void setTicketType(Integer ticketType) {
        this.ticketType = ticketType;
    }

    public BigDecimal getPriceStart() {
        return priceStart;
    }

    public void setPriceStart(BigDecimal priceStart) {
        this.priceStart = priceStart;
    }

    public BigDecimal getPriceEnd() {
        return priceEnd;
    }

    public void setPriceEnd(BigDecimal priceEnd) {
        this.priceEnd = priceEnd;
    }

    public Integer getMode() {
        return mode;
    }

    public void setMode(Integer mode) {
        this.mode = mode;
    }

    public BigDecimal getRaiseMoney() {
        return raiseMoney;
    }

    public void setRaiseMoney(BigDecimal raiseMoney) {
        this.raiseMoney = raiseMoney;
    }

    public Integer getRaisePercent() {
        return raisePercent;
    }

    public void setRaisePercent(Integer raisePercent) {
        this.raisePercent = raisePercent;
    }

    public BigDecimal getPriceStartAfterraise() {
        return priceStartAfterraise;
    }

    public void setPriceStartAfterraise(BigDecimal priceStartAfterraise) {
        this.priceStartAfterraise = priceStartAfterraise;
    }

    public BigDecimal getPriceEndAfterraise() {
        return priceEndAfterraise;
    }

    public void setPriceEndAfterraise(BigDecimal priceEndAfterraise) {
        this.priceEndAfterraise = priceEndAfterraise;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PriceRaiseRule{" +
        ", id=" + id +
        ", ticketType=" + ticketType +
        ", priceStart=" + priceStart +
        ", priceEnd=" + priceEnd +
        ", mode=" + mode +
        ", raiseMoney=" + raiseMoney +
        ", raisePercent=" + raisePercent +
        ", priceStartAfterraise=" + priceStartAfterraise +
        ", priceEndAfterraise=" + priceEndAfterraise +
        "}";
    }
}
